import requests

cookies = {
    'PHPSESSID': 't4dohd5sjtb7umbffo78hobsb2',
    'qm_check': 'A1sdRUIQChtxen8pI0dAMRcOUFseEHBeQF0JTjVBWCwycRd1QlhAXFEGFUdASAFKBQcCCXgGDBFFIg4aHRoOBnMDARlGR2dQOVdICAolAGgCHBl0B3xUV05KVFsZXVJRWxsKFghJVktYVElWBRVP',
    'gr_user_id': '4dde310d-92d6-4bc2-95fc-1dbac454a630',
    'ada35577182650f1_gr_session_id': '3197efbb-44f5-4570-b664-e175eb8f3ea5',
    'ada35577182650f1_gr_session_id_sent_vst': '3197efbb-44f5-4570-b664-e175eb8f3ea5',
    'synct': '1740411807.746',
    'syncd': '555',
}

headers = {
    'Accept': 'application/json, text/plain, */*',
    'Accept-Language': 'zh-CN,zh;q=0.9',
    'Cache-Control': 'no-cache',
    'Connection': 'keep-alive',
    'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
    # 'Cookie': 'PHPSESSID=t4dohd5sjtb7umbffo78hobsb2; qm_check=A1sdRUIQChtxen8pI0dAMRcOUFseEHBeQF0JTjVBWCwycRd1QlhAXFEGFUdASAFKBQcCCXgGDBFFIg4aHRoOBnMDARlGR2dQOVdICAolAGgCHBl0B3xUV05KVFsZXVJRWxsKFghJVktYVElWBRVP; gr_user_id=4dde310d-92d6-4bc2-95fc-1dbac454a630; ada35577182650f1_gr_session_id=3197efbb-44f5-4570-b664-e175eb8f3ea5; ada35577182650f1_gr_session_id_sent_vst=3197efbb-44f5-4570-b664-e175eb8f3ea5; synct=1740411807.746; syncd=555',
    'Origin': 'https://www.qimai.cn',
    'Pragma': 'no-cache',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-site',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36',
    'sec-ch-ua': '"Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
}

params = {
    'analysis': 'dkZJBgsbFg9bRWFSSw1WUQwIJ0tPQEsNBgBUVVAJAyVFVA==',
}

data = {
    'username': '1003206180@qq.com',
    'password': '1003206180@qq.com',
}

response = requests.post('https://api.qimai.cn/accountV1/login', params=params, cookies=cookies, headers=headers, data=data, verify=False)
print(response.json())